<%@page import="ru.spies.profileClasses.UserInfo"%>
<%@page import="ru.spies.forms.FormCreator"%>
<%@page import="ru.spies.forms.IFormForWork"%>
<%@page import="ru.spies.forms.SystemForm"%>
<%@page import="ru.spies.forms.AddForm"%>
<%@page import="ru.spies.content.CurrentButtonClass"%>
<%@page import="ru.spies.content.ChooseContent"%>
<%@page import="ru.spies.content.EIndexContentType"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<<html>
<head>
	<!-- Шрифт с инета -->
	<link href='http://fonts.googleapis.com/css?family=Lobster&subset=latin,cyrillic-ext' rel='stylesheet' type='text/css'>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="styles.css">
	<title>Работа с данными</title>
	<script src="spiesSite.js"> </script>
</head>
<body class="background">
		<div class="header">
		</div>
		<div class="buttons">
			<button class="menuBtn" onclick="goHome()">
				Главная 
			</button><button class="menuBtn" onclick="goNews()">
				Новости
			</button><button class="activeBtnMenu" onclick="goSystem()">
				Система
			</button><button class="menuBtn" onclick="goLogin()">
				Вход
			</button>
		</div>
		<div class="infoAndPanel" align="center">
			<div class="leftPanel">
				<div class="leftPanelTop">
				</div>
				<div class="leftPanelBody">
				 	<button class="linkPanel" onclick="goAbout()">
				 		<span>О программе</span>
				 	</button>
				 	<button class="linkPanel" onclick="goLastUpd()">
				 		<span>Последнии обновления</span>
				 	</button>
				 	<button class="linkPanel" onclick="goMap()">
				 		<span>Карта сайта</span>
				 	</button>
				</div>
				<div class="leftPanelBot">
				</div>
				<div class="leftPanelTop">
				</div>
				<div class="leftPanelBody">
				 	<%=UserInfo.getInstance().getMyInfo() %>
				</div>
				<div class="leftPanelBot">
				</div>
			</div>	
			<div class="info">
				<div class="infoTop">
				</div>
				<div class="infoBody">
					<span class="contentInfo">	
						<%
							IFormForWork currentForm=SystemForm.getInstance().getFormForWork();
							if (currentForm!=null){
								out.write(currentForm.doMainFormWork(request));
							} else {
								out.write(SystemForm.getInstance().getErrorMessage());	
							}
						%>			
						<br>
					</span>
				</div>
				<div class="infoBot">
				</div>
			</div>
		</div>
		<div class="bot">
			"Secret group" © All rights reserved!
		</div>
</body>
</html>